package dao;

import java.util.List;

import org.hibernate.Session;

import modele.Module;


import persistence.BaseDAO;

public class ModuleDAO{
	
	public static void ajouterModule(Module module, Session session) throws Exception{
		BaseDAO.getInstance().ajouter(module,session);
	}

	public static void modifierModule(Module module, Session session) {
		BaseDAO.getInstance().modifier(module,session);
	}

	public static void SupprimerModule(Module module, Session session) {
		BaseDAO.getInstance().delete(module,session);
	}

	public static void getModule(int id, Session session) {
		BaseDAO.getInstance().getObject(Module.class, id,session);
	}

	public static List getListModule(String requette, Session session) {
		return BaseDAO.getInstance().getListObject(requette,session);
	}

}
